package com.hy.ssm.biz.impl;

import com.hy.ssm.bean.AdminInfo;
import com.hy.ssm.biz.IAdminInfoBiz;
import com.hy.ssm.mapper.IAdminInfoMapper;
import com.hy.ssm.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: HuYang
 * @Date: 2022/11/6 - 11 - 06 - 16:50
 * @Description: com.yc.snack.biz.impl
 * @version: 1.0
 */
@Service
public class AdminInfoBizImpl implements IAdminInfoBiz {
    @Autowired
    private IAdminInfoMapper adminInfoMapper;
    @Override
    public AdminInfo login(AdminInfo af) {
        if (StringUtil.checkNull(af.getAname(),af.getPwd())){
            return null;
        }
        return adminInfoMapper.login(af);
    }
}
